Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Spec Namespace / IPdfRefExt Class / TryResolve Method / TryResolve<T>(IPdfRef,T,Boolean,Boolean) Method
The type of the indirect PDF object.
The current IPdfRef.
OUT: The referenced PDF indirect object.
OUT: Indicates whether the referenced value is IPdfNull.
Indicates whether to add a warning if the reference cannot be resolved to an object of the specified type.

In This Topic
    TryResolve<T>(IPdfRef,T,Boolean,Boolean) Method
    In This Topic
    Tries to resolve the reference and return the IPdfObject of the specified type referenced by this IPdfRef.
    Syntax
    'Declaration
     
    Public Overloads Shared Function TryResolve(Of T As IPdfObject)( _
       ByVal pr As IPdfRef, _
       ByRef value As T, _
       ByRef isNull As System.Boolean, _
       ByVal addWarning As System.Boolean _
    ) As System.Boolean
    public static System.bool TryResolve<T>( 
       IPdfRef pr,
       out T value,
       out System.bool isNull,
       System.bool addWarning
    )
    where T: IPdfObject

    Parameters

    pr
    The current IPdfRef.
    value
    OUT: The referenced PDF indirect object.
    isNull
    OUT: Indicates whether the referenced value is IPdfNull.
    addWarning
    Indicates whether to add a warning if the reference cannot be resolved to an object of the specified type.

    Type Parameters

    T
    The type of the indirect PDF object.

    Return Value

    true if successful, false otherwise.
    See Also